package com.ayitubie.refuelweb.config.jedis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import redis.clients.jedis.JedisCluster;

@Service
public class RedisService {

    @Autowired
    private JedisCluster jedisCluster;

    public void setValue(String key, String value) {
        jedisCluster.set(key, value);
    }

    public String getValue(String key) {
        return jedisCluster.get(key);
    }
}